import 'dart:convert';

class Server {
  Server({
    this.name,
    this.host,
    this.port,
  });

  String name;
  String host;
  String port;

  factory Server.fromRawJson(String str) => Server.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory Server.fromJson(Map<String, dynamic> json) => Server(
        name: json["name"],
        host: json["host"],
        port: json["port"],
      );

  Map<String, dynamic> toJson() => {
        "Name": name,
        "host": host,
        "port": port,
      };
}
